package com.onetime.mall.trading.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.onetime.mall.trading.entity.OrderEntity;
import com.onetime.mall.trading.utils.PageUtils;
import com.onetime.mall.trading.vo.OrdersAndProductsVo;

import java.util.List;
import java.util.Map;

/**
 * 订单表
 *
 * @author liyixuan
 * @email liyixuan106@163.com
 * @date 2022-03-26 19:38:29
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean updateOrder(OrderEntity orderEntity);

    boolean addOrder(OrderEntity order);

    List<OrdersAndProductsVo> getMyOrder(Long userId);

    List<OrdersAndProductsVo> getMySoldIdle(Long userId);

    boolean deleteOrder(Long id);

    PageUtils getAllOrderByPage(Map<String, Object> params);

}

